package com.ws.event;

import com.domain.dto.UserShowInfo;
import com.ws.message.MessageFormat;
import com.ws.message.MessageType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

import static com.ws.message.MessageType.INTER_EXIT_TEAM_ADVICE;
@EqualsAndHashCode(callSuper = true)
@Data
public class TeamEvent extends MessageFormat {
    private UserShowInfo sender;
    private String status;


    public TeamEvent(Long teamId, UserShowInfo sender,String status) {
        super(INTER_EXIT_TEAM_ADVICE, sender.getId(), teamId);
        this.status=status;
        this.sender = sender;
    }
}
